<template>
      
  <div class="">
    <header>
      <van-icon name="arrow-left" @click="dels" />
      <p>砍价列表</p>
      <a></a>
    </header>
    <ul>
      <li>
        <img :src="lists[99761].pic" alt="" />
        <div class="boxa">
          <p v-html="lists[99761].name" class="name"></p>
          <p v-html="lists[99761].characteristic" class="characteristic"></p>
          <div class="price">
            <div>
              <span class="priceas">￥{{ lists[99761].minPrice }}</span>
              <span>低价</span>
            </div>
            <div class="pri">
              <span>￥{{ lists[99761].originalPrice }}</span>
              <span>原价</span>
            </div>
            <div class="pri">
              <span>{{ lists[99761].stores }}件</span>
              <span>限量</span>
            </div>
          </div>
        </div>
      </li>
    </ul>
    <ul>
      <li>
        <img :src="lists[99762].pic" alt="" />
        <div class="boxa">
          <p v-html="lists[99762].name" class="name"></p>
          <p v-html="lists[99762].characteristic" class="characteristic"></p>
          <div class="price">
            <div>
              <span class="priceas">￥{{ lists[99762].minPrice }}</span>
              <span>低价</span>
            </div>
            <div class="pri">
              <span>￥{{ lists[99762].originalPrice }}</span>
              <span>原价</span>
            </div>
            <div class="pri">
              <span>{{ lists[99762].stores }}件</span>
              <span>限量</span>
            </div>
          </div>
        </div>
      </li>
    </ul>
    <ul>
      <li>
        <img :src="lists[99763].pic" alt="" />
        <div class="boxa">
          <p v-html="lists[99763].name" class="name"></p>
          <p v-html="lists[99763].characteristic" class="characteristic"></p>
          <div class="price">
            <div>
              <span class="priceas">￥{{ lists[99763].minPrice }}</span>
              <span>低价</span>
            </div>
            <div class="pri">
              <span>￥{{ lists[99763].originalPrice }}</span>
              <span>原价</span>
            </div>
            <div class="pri">
              <span>{{ lists[99763].stores }}件</span>
              <span>限量</span>
            </div>
          </div>
        </div>
      </li>
    </ul>
       <ul>
      <li>
        <img :src="lists[99764].pic" alt="" />
        <div class="boxa">
          <p v-html="lists[99764].name" class="name"></p>
          <p v-html="lists[99764].characteristic" class="characteristic"></p>
          <div class="price">
            <div>
              <span class="priceas">￥{{ lists[99764].minPrice }}</span>
              <span>低价</span>
            </div>
            <div class="pri">
              <span>￥{{ lists[99764].originalPrice }}</span>
              <span>原价</span>
            </div>
            <div class="pri">
              <span>{{ lists[99764].stores }}件</span>
              <span>限量</span>
            </div>
          </div>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
import { kanjiaxq } from "../utils/api/home.js";

export default {
  data() {
    return {
      list: [],
      lists: [],
      id: [],
    };
  },
  mounted() {
    kanjiaxq().then((res) => {
      console.log(res);
      this.list = res.data.data.result;
      this.lists = res.data.data.goodsMap;
    });
  },
  methods: {
    dels() {
      this.$router.go(-1);
    },
  },
};
</script>

<style lang='scss' scoped>
header {
  border-bottom: 0.04rem solid #f5f5f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 1rem;
  width: 7.5rem;
  padding-left: 0.1rem;
  padding-right: 0.1rem;
  p {
    font-size: 0.33rem;
  }
  .van-icon {
    font-size: 0.4rem;
  }
}
ul {
  li {
    padding: 0.14rem;
    display: flex;
    border-bottom: 0.04rem solid #f5f5f5;
    div {
      .name {
        font-size: 0.34rem;
      }
      .characteristic {
        font-size: 0.24rem;
      }
    }

    img {
      border-radius: 0.09rem;
      width: 2.26rem;
      height: 2.26rem;
    }
  }
}
.boxa {
  position: relative;
  margin-left: 0.2rem;
}
.price {
  width: 4rem;
  position: absolute;
  lrft: 0;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 0.32rem;
  div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}
.pri {
  color: #b2b2b2;
}
.priceas {
  color: red;
  font-weight: 500;
}
.characteristic {
  margin-top: 0.14rem;
  color: #b2b2b2;
}
</style>
